import React, { FC, useEffect } from 'react';

interface MockProps {}
const Mock: FC<MockProps> = props => {
  useEffect(() => {
    fetch('/api/notices')
      .then(res => res.json())
      .then(res => {
        console.log(res);
      })
      .catch(err => {
        console.log(err);
      });
  }, []);
  return (
    <div>
      <h3>Mock</h3>
    </div>
  );
};

export default Mock;
